def factor(x,y,debug = False):
    if(debug):
        print(f'打印调试信息x={x},y={y}')
    return x + y
print(factor(10,20))
print(factor(10,20,True))